<!-- 管理员界面 -->

<div class="layui-form" lay-filter="menu-edit-form" style="padding: 20px 30px 0 0;">
	<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">id</label>
		<div class="layui-input-inline">
			<script type="text/html" template>
				<input type="text" name="id" value="{{ d.params.id || '' }}"  placeholder="请输入用户名用户名" autocomplete="off" class="layui-input">
	  </script>
		</div>
	</div>
	<div class="layui-form-item" style="display: none;">
		<label class="layui-form-label">parentId</label>
		<div class="layui-input-inline">
			<script type="text/html" template>
				<input type="text" name="parentId" value="{{ d.params.parentId.split('_')[1] || '' }}"   placeholder="请输入用户名用户名" autocomplete="off" class="layui-input">
	  </script>
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">菜单名称</label>
		<div class="layui-input-inline">
			<script type="text/html" template>
				<input type="text" name="name" value="{{ d.params.name || '' }}"  lay-verify="required" placeholder="请输入用户名用户名" autocomplete="off" class="layui-input">
      </script>
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label">应用地址</label>
		<div class="layui-input-inline">
			<script type="text/html" template>
				<input type="text" name="menuUrl"  value="{{ d.params.menuUrl || '' }}"  placeholder="请输入号码" autocomplete="off" class="layui-input">
	  </script>
		</div>
	</div>

	<!-- <div class="layui-form-item">
		<label class="layui-form-label">图标地址</label>
		<div class="layui-input-inline">
			<script type="text/html" template>
				<input type="text" name="imgUrl" value="{{ d.params.imgUrl || '' }}"  placeholder="请输入号码" autocomplete="off" class="layui-input">
	  </script>
		</div>
	</div> -->

	<div class="layui-form-item">
		<label for="" class="layui-form-label">图标</label>
		<div class="layui-input-block">
			<input type="text" name="imgUrl"  value="{{ d.params.imgUrl || '' }}" id="iconHhysFa" lay-filter="" class="hide">
		</div>
	</div>


	<div class="layui-form-item">
		<label class="layui-form-label">排序码</label>
		<div class="layui-input-inline">
			<script type="text/html" template>
				<input type="text" name="sortCode" value="{{ d.params.orderNumber || '' }}" lay-verify="required" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
      </script>
		</div>
	</div>

	<div class="layui-form-item">
		<label class="layui-form-label"></label>
		<div class="layui-input-inline">
			<input type="button" lay-submit lay-filter="LAY-menu-back-submit" value="确认" class="layui-btn">
		</div>
	</div>
</div>

<script>
	layui.use(['admin', 'form', "laytpl", "iconHhysFa"], function() {
		var $ = layui.$,
			admin = layui.admin,
			setter = layui.setter,
			laytpl = layui.laytpl,
			form = layui.form;

		var iconHhysFa = layui.iconHhysFa;

		iconHhysFa.render({
			// 选择器，推荐使用input
			elem: '#iconHhysFa',
			// 数据类型：fontClass/awesome，推荐使用fontClass
			type: 'fontClass',
			// 是否开启搜索：true/false，默认true
			search: true,
			// 是否开启分页：true/false，默认true
			page: true,
			// 每页显示数量，默认12
			limit: 12,
			url: '',
			// 点击回调
			click: function(data) {
				console.log(data);
			},
			// 渲染成功后的回调
			success: function(d) {
				console.log(d);
			}
		});

		/**
		 * 默认选选中图标
		 */
		// iconHhysFa.checkIcon("iconFonts", "{$info.icon}", "layui_icon");
	});
</script>
